package pl.lodz.p.beans;

import java.io.Serializable;

import pl.lodz.p.services.NotificationSendService;
import pl.lodz.p.services.NotificationSendServiceImpl;

public class NotificationManagedBean implements Serializable{

	private static final long serialVersionUID = 8301083776385646975L;
	NotificationSendService notificationSendService = new NotificationSendServiceImpl();
	
	public String sendTestMail(){
		String str = "grzegorzwyrwas10@gmail.com";
		notificationSendService.getSendEmail(str, "Temat", "Tresc");
		return "";
	}
	
	public String sendTestSms(){
		String str1 = "smsik";
		String str2 = "660874861";
		notificationSendService.sendSms(str1, str2);
		return "";
	}
	
	public String sendMail(String email, String topic, String text){
		return notificationSendService.getSendEmail(email, topic, text);
	}
	
	public String sendSms(String phoneNumber, String text){
		return notificationSendService.sendSms(phoneNumber, text);
	}
}
